package com.tanhua.dubbo.server.pojo;


import com.tanhua.dubbo.server.enums.State;
import com.tanhua.dubbo.server.enums.TopState;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "messages")
public class Messages implements java.io.Serializable{
    @Id
    private ObjectId id; //主键id

    private Long userId; //用户id

    private ObjectId publishId; //发布id 

    private TopState topState;

    private State state;
}
